package com.matt;



import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


@SpringBootApplication(scanBasePackages = {"com.matt", "com.tuo51", "com.dotflat"})
@EnableJpaRepositories(basePackages = {"com.matt", "com.tuo51", "com.dotflat"})
@EntityScan(basePackages = {"com.matt", "com.tuo51", "com.dotflat"})
@EnableScheduling
@Slf4j
@EnableSwagger2
@EnableTransactionManagement
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}


//	@Bean
//	public StartupRunner startupRunner(){
//		return new StartupRunner();
//	}


//	@Bean
//	public ConversionService conversionService() {
//		FormattingConversionServiceFactoryBean factory = new FormattingConversionServiceFactoryBean();
//		DateTimeFormatterRegistrar registrar = new DateTimeFormatterRegistrar();
//		registrar.setUseIsoFormat(true);
//		factory.setFormatterRegistrars(Collections.singleton(registrar));
//		factory.afterPropertiesSet();
//		return factory.getObject();
//	}

}
